package com.sailor.excel.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor
public class BaseEntity {

    private Integer status;
    @JsonProperty("create_time")
    @JsonFormat(pattern="yyyy.MM.dd HH:mm:ss")
    private Date createTime;
    @JsonProperty("create_user")
    private String createUser;
    @JsonProperty("update_time")
    @JsonFormat(pattern="yyyy.MM.dd HH:mm:ss")
    private Date updateTime;
    @JsonProperty("update_user")
    private String updateUser;
}